/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: DuKe TeAm
 * License Type: Purchased
 */
package orm;

import java.io.Serializable;
public class Usuario implements Serializable {
	public Usuario() {
	}
	
	private java.util.Set this_getSet (int key) {
		if (key == orm.ORMConstants.KEY_USUARIO_PRODUCTO) {
			return ORM_producto;
		}
		
		return null;
	}
	
	org.orm.util.ORMAdapter _ormAdapter = new org.orm.util.AbstractORMAdapter() {
		public java.util.Set getSet(int key) {
			return this_getSet(key);
		}
		
	};
	
	private Integer idUser;
	
	private String username;
	
	private String password;
	
	private String nombre;
	
	private String apellidos;
	
	private Integer edad;
	
	private String email;
	
	private String rut;
	
	private java.util.Set ORM_producto = new java.util.HashSet();
	
	private void setIdUser(int value) {
		setIdUser(new Integer(value));
	}
	
	private void setIdUser(Integer value) {
		this.idUser = value;
	}
	
	public Integer getIdUser() {
		return idUser;
	}
	
	public Integer getORMID() {
		return getIdUser();
	}
	
	public void setUsername(String value) {
		this.username = value;
	}
	
	public String getUsername() {
		return username;
	}
	
	public void setPassword(String value) {
		this.password = value;
	}
	
	public String getPassword() {
		return password;
	}
	
	public void setNombre(String value) {
		this.nombre = value;
	}
	
	public String getNombre() {
		return nombre;
	}
	
	public void setApellidos(String value) {
		this.apellidos = value;
	}
	
	public String getApellidos() {
		return apellidos;
	}
	
	public void setEdad(int value) {
		setEdad(new Integer(value));
	}
	
	public void setEdad(Integer value) {
		this.edad = value;
	}
	
	public Integer getEdad() {
		return edad;
	}
	
	public void setEmail(String value) {
		this.email = value;
	}
	
	public String getEmail() {
		return email;
	}
	
	public void setRut(String value) {
		this.rut = value;
	}
	
	public String getRut() {
		return rut;
	}
	
	private void setORM_Producto(java.util.Set value) {
		this.ORM_producto = value;
	}
	
	private java.util.Set getORM_Producto() {
		return ORM_producto;
	}
	
	public final orm.ProductoSetCollection producto = new orm.ProductoSetCollection(this, _ormAdapter, orm.ORMConstants.KEY_USUARIO_PRODUCTO, orm.ORMConstants.KEY_PRODUCTO_USUARIOIDUSER, orm.ORMConstants.KEY_MUL_ONE_TO_MANY);
	
	public String toString() {
		return String.valueOf(getIdUser());
	}
	
}
